package com.itheima.a01mybytestream;

import java.io.FileInputStream;
import java.io.IOException;

public class FileInputStreamDemo1 {
    public static void main(String[] args) throws IOException {
        //熟悉字节流的读取
        //创建对象
        FileInputStream fis=new FileInputStream("myio\\a.txt");
        //读取,一次读取一个字节，并返回其对应的ASCII码表值
        int read = fis.read();
        int read1 = fis.read();
        System.out.println((char)read);
        System.out.println((char)read1);
        //释放资源
        fis.close();
    }
}
